<%@ Page Language="C#" MasterPageFile="~/SFMaster.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="articles_Default" %>

<%@ Register Src="/UserControls/uctArticleTopRead.ascx" TagName="uctArticleTopRead"
    TagPrefix="uc3" %>

<%@ Register Src="/UserControls/uctArticleArchive.ascx" TagName="uctArticleArchive"
    TagPrefix="uc2" %>

<%@ Register Src="/UserControls/uctArticleCategories.ascx" TagName="uctArticleCategories"
    TagPrefix="uc1" %>
    <%@ Register Assembly="WebControls" Namespace="WebControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderArchive" Runat="Server">
    <uc1:uctArticleCategories ID="UctArticleCategories1" runat="server" />
    <uc2:uctArticleArchive ID="UctArticleArchive1" runat="server" />
    <uc3:uctArticleTopRead ID="UctArticleTopRead1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" Runat="Server">
<table width=100%>
    <cc1:SFRepeater ID="sfrArticles" runat="server" OnNeedsDataSource="sfrArticles_NeedsDataSource">
        <ItemTemplate>
            <tr>
                <td align=left class="title">
                    <%#DataBinder.Eval(Container.DataItem, "ArticleTitle")%>
                </td>
                <td align=right>
                    <%#Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "PublishDate")).ToShortDateString()%>
                </td>
            </tr>
            <tr>
                <td colspan=2>
                    
                   <asp:Label ID=lblInnerText runat=server Text='<%#DataBinder.Eval(Container.DataItem, "ArticleSummary")%>'></asp:Label><br />
                   
                </td>
            </tr>
            <tr>
                <td colspan=2  class=panelMainShowAll>
                <a id="A1" runat="server" href='<%#GenerateUrl(DataBinder.Eval(Container.DataItem, "ArticleId")) %>'><cc1:SFLabel ID="lblArticleDetail" runat=server></cc1:SFLabel></a>
                </td>
            </tr>
        </ItemTemplate>
<SeparatorTemplate>
    <tr><td colspan=2><hr /></td></tr>                
</SeparatorTemplate>
    </cc1:SFRepeater>
</table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderEdit" Runat="Server">
</asp:Content>

